package com.nuoniu.sibanyun.service.crm.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.nuoniu.sibanyun.entity.crm.CrmFiles;
import com.nuoniu.sibanyun.mapper.crm.CrmFilesMapper;
import com.nuoniu.sibanyun.service.crm.ICrmFilesService;
import com.nuoniu.sibanyun.userThread.UserInfo;
import com.nuoniu.sibanyun.userThread.UserThreadLocal;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 客户文档 服务实现类
 * </p>
 *
 * @author baiqiang
 * @since 2020-06-20
 */
@Service
public class CrmFilesServiceImpl extends ServiceImpl<CrmFilesMapper, CrmFiles> implements ICrmFilesService {

    @Autowired
    private CrmFilesMapper filesMapper;

    @Override
    public Page<CrmFiles> pageFilesList(Page page, CrmFiles files) {
        UserInfo userInfo = UserThreadLocal.get();
        return filesMapper.pageFilesList(page, files, userInfo);
    }
}
